package org.ResearchProject.service;

import org.ResearchProject.pojo.ResearchTask;

import javax.xml.soap.Text;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Map;

/**
 * 2024-12-13-19:27
 */
public interface ResearchTaskService {
    void addTask(ResearchTask researchTask);

    void deleteTask(Integer taskId);

    void updateTask(ResearchTask researchTask);

    Map<String,Object> selectTaskById(Integer taskId);

    ArrayList<Map<String,Object>> TutorSelectAllTask(Integer id);

    ArrayList<Map<String,Object>>  StudentSelectAllTask(Integer studentId);

    void giveTaskToStudent(Integer taskId, Integer studentId, LocalDateTime startTime, LocalDateTime endTime, Integer tutorId);

    void submitTask(Integer taskId, String text, Integer id);
}
